﻿@model _2009035.Models.LoginModel
@* namespaces needed to access BotDetect members and the CaptchaHelper class *@
@using BotDetect.Web.UI.Mvc;
@using _2009035.Utilities;


@{
    ViewBag.Title = "Log in";
}
<!--left col-->
<div class="span4">

    <div class="well">
        <br />
        <br />
        <h1>Login </h1>
        <br />
        <br />
          @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary()
        <!-- Username and Password labels -->
         @Html.TextBoxFor(m => m.UserName, new { id = "txtbxUsername"})
               // @Html.ValidationMessageFor(m => m.UserName)
        <br />
        <br />
         @Html.PasswordFor(m => m.Password, new { id = "txtbxPassword"})
               // @Html.ValidationMessageFor(m => m.Password)
        <br />
        <br />
                @Html.Label("CaptchaCode", "Retype the code from the picture:")
                 MvcCaptcha sampleCaptcha = CaptchaHelper.GetSampleCaptcha(); 
                @Html.Captcha(sampleCaptcha)
              <br />
              <br />
              <br />
              <br />
              <br />
              <br />
               @Html.TextBox("CaptchaCode")
                <span class="status" id="status">Not checked yet</span>
              <br />
              <br />
        <button type="submit" id="btnLogin" class="ui-button-primary" > Login 

        </button>
          }
    </div>

</div>

<!--end col-->
<div class="span10">
    
    @Html.Partial("KendoGrid")
</div>
